package com.athuiju.fenxiaoback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author athuiju
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbPromotion对象", description="")
public class TbPromotion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "促销活动id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "活动类型，目前可选的有：0没有促销，1满减，2满额送抵扣券，3秒杀")
    private String type;

    @ApiModelProperty(value = "促销活动说明")
    private String description;

    @ApiModelProperty(value = "满减条件，秒杀的话设置为0")
    private Long condition;

    @ApiModelProperty(value = "满减后的折扣金额")
    private Long reduction;

    @ApiModelProperty(value = "秒杀价格，如果是秒杀活动，需要填写")
    private Long seckillPrice;

    @ApiModelProperty(value = "满额送券，关联的优惠券id")
    private Long couponId;

    @ApiModelProperty(value = "作用的目标sku的id拼接，以','拼接")
    private String targets;

    private Date startTime;

    private Date endTime;


}
